<%@page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<link href="<%=syscontextPath %>/images/skin.css" rel="stylesheet" type="text/css" />
<link href="<%=syscontextPath %>/images/fox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=syscontextPath %>/js/jquery/jquery-1.3.2.min.js "></script>
<script type="text/javascript" src="<%=syscontextPath %>/js/pub/preview.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<body>
 <form id="form1" method="post" action="<%=syscontextPath %>/product/upload3" enctype="multipart/form-data">   
 <table>               
     <tr>  
         <td width="25%" align="right">上传文件：</td>  
         <td><input type="file" name="fileInput" id="fileInput" value="上传图片"></td> <br>
         <input type="text" name="text" value="text"><br> 
     </tr> 
     <tr>
     <td colspan="2">
     <div style="width:120px;height:90px;overflow:hidden;border:dotted 1px #ccc" id="fileInputprv"></div>
     </td>
     </tr> 
     <tr align="center" valign="middle">  
         <td height="60" colspan="2"><input type="submit" ID="BtnOK" value="确认上传"></td>  
     </tr>
     </table>  
 </form>   
</body>
<script type="text/javascript">

$("#fileInput").change(function() {
	var imgObj='fileInput';
	  // 这里可以写些验证代码
	jQuery.imagePreview({id:imgObj+'prv',upload:imgObj,preObj:imgObj+'prv',width:120,height:90});
});
//-->
</script>
